package com.smartrobot.smartrobot.Common;


import com.smartrobot.smartrobot.Config.Config;
import com.smartrobot.smartrobot.logToSdCard.LogToSd;


import com.smartrobot.smartrobot.websocket.websocketHandle_2;
import com.websocket_lib.codebutler.android_websockets.WebSocketClient;


/**
 * Created by Administrator on 2014/12/22.
 */
public class Common {


    public  static LogToSd logToSd;   //写入log到sd卡
    public  static Config config;     //配置文件



    //服务器的sessionID的key值
    public  static String sessionIdKey = "beegosessionID";


    //服务器地址
    public  static String addr = "112.74.103.216";

    //服务器端口
    public static String host = "7070";


    //服务器的base地址
    public  static String  baseUrl = "http://"+addr+":"+host;

    //websocket地址
    public static String webSocketUrl = "ws://"+addr+":"+host+"/ws/join";
    public static String managerUrl = baseUrl + "/manager";


    /* 社交圈的朋友列表的本地数据的文件路径  */
    public static String  f_circle_friend = "cf.bin";


    /* 聊天列表的本地数据文件的路径*/
    public static String chat_file = "char.bin";



    /*是否开启websocket*/
    public  static boolean startWebSocketServer = true;


    /* 是否开启心跳 (默认开启)*/
    public  static boolean startHeartBeat = true;




    public  static String ac_name = "ask_login";


    /* webscoket实例 */
//    public static websocketHandler _websocketHandler= null;
    public static websocketHandle_2 _websocketHandler2 = null;



    /*  我的 my_websocket 服务器  */
    public static WebSocketClient my_webSocketClient = null;












}




















